﻿using System;

namespace Douya.Json
{
    public class JsonNull : IJsonValue
    {
        public ValueType Type
        {
            get { return ValueType.TypeNull; }
        }

        public bool GetBoolean()
        {
            return false;
        }

        public int GetInteger()
        {
            return 0;
        }

        public string GetString()
        {
            return "null";
        }

        public JsonObject GetObject()
        {
            return null;
        }

        public JsonArray GetArray()
        {
            return null;
        }

        public override string ToString()
        {
            return GetString();
        }
    }
}
